package io;

import java.io.BufferedOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

//缓冲字节输出流的缓冲区问题
public class BOSFlashDemo {
    public static void main(String[] args) throws IOException {
//        FileOutputStream fos = new FileOutputStream("boos.txt");
//        BufferedOutputStream bos = new BufferedOutputStream(fos);
//        String line = "二十九佛郭金佛郭就佛教是佛郭酒叟福建师范角色将foeJFJF高科技非法拘禁";
//        byte[] data = line.getBytes(StandardCharsets.UTF_8);
//        bos.write(data);
//
//        bos.flush();
//
//        System.out.println("写出完毕！");
//        bos.close();






        FileOutputStream fos = new FileOutputStream("oooo.word");
        BufferedOutputStream bos = new BufferedOutputStream(fos);

//        String















    }
}
